<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>党员星级管理</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="assets/css/amazeui.datetimepicker.css" />
    <link rel="stylesheet" href="assets/css/app.css">
    <link rel="stylesheet" href="assets/css/main.css">
    <script charset="utf-8" src="assets/kindeditor/kindeditor-all.js"></script>
    <script charset="utf-8" src="assets/kindeditor/lang/zh-CN.js"></script>
    <link rel="stylesheet" href="ztree/css/zTreeStyle/zTreeStyle2.css" type="text/css">
    <script src="assets/js/jquery.min.js"></script>
    <script>
        let name = sessionStorage.getItem("username");
        if (name === null) {
            alert("您还未登录，请登录！");
            window.location.href = "login.html";
        }
    </script>
    <style>
        #title1{
            font-size: 12px;
        }
        #title2{
            font-size: 14px;
            text-align: center;
            color: red;
        }
    </style>
</head>

<body data-type="index">
    <script src="assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
<div id="personSettings"></div>
<header class="main_header">

    <!-- 右侧内容 -->
    <div class="tpl-header-fluid">


        <!-- 其它功能-->
        <div class="am-fr tpl-header-navbar">
            <ul>
                <!-- 欢迎语 -->
                <li class="am-text-sm tpl-header-navbar-welcome">
                    <a href="javascript:;">欢迎你, <span id="name"></span> </a>
                </li>
                <!--个人设置-->
                <li class="am-text-sm" data-am-modal="{target: '#settings'}" onclick="settings()">
                    <a href="javascript:;">
                        <span class="am-icon-user"></span> 个人设置
                    </a>
                </li>

                <!--退出系统-->
                <li class="am-text-sm" onclick="exit()">
                    <a href="javascript:;">
                        <span class="am-icon-sign-out"></span> 退出系统
                    </a>
                </li>
            </ul>
        </div>
    </div>
</header>


        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="am-panel am-panel-default" id="postId">
                <div class="am-panel-bd" style="display: flex;justify-content: flex-start;align-items: center">

                    <a class="flexMenu" href="integral_rule.html">
                        <img src="assets/img/dbxx.png">
                        <p>积分规则</p>
                    </a>

                    <a class="flexMenu  menu-bg" href="integral_rule.html">
                        <img src="assets/img/Backstage5.png">
                        <p>党员星级管理</p>
                    </a>

                    <a class="flexMenu" href="index.html">
                        <img src="assets/img/backup.png">
                        <p>返回</p>
                    </a>

                </div>

            </div>

            <div class="row-content am-cf">

                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">                            
                            <div class="widget-body  am-fr">
                               <div class="am-popup-bd" style="height: 600px;background: #ecf2ff;overflow: scroll;">
                                    <h2 id="title2" style="font-size: 16px;">积分规则</h2>
                                    <p style="text-align:center">发布人:<span id="create_user_name">管理员</span>&nbsp;&nbsp;&nbsp;发布时间:<span id="create_times">2018-11-19 15:22:15</span></p>
                                    <div id="content1">快快快</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 

   
    <!--模态窗口提示成功-->
    <div class="am-modal am-modal-alert " tabindex="-1" id="my-alert">
        <div class="am-modal-dialog">
            <div class="am-modal-hd users"></div>
            <div class="am-modal-bd alert">

            </div>
            <div class="am-modal-footer">
                <span class="am-modal-btn">确定</span>
            </div>
        </div>
    </div>
    <script src="assets/js/amazeui.min.js"></script>
    <script src="assets/js/amazeui.datetimepicker.min.js"></script>
    <script src="assets/js/amazeui.datatables.min.js"></script>
    <script src="assets/js/app.js"></script>
</body>
<script>
//标题点开
let token = sessionStorage.getItem("token");
$.ajax({
    url: testurl + "/notice/detail",
    type: "post",
    headers: { "Authorization": "Bearer " + token },
    contentType: "application/json",
    data: JSON.stringify({
        "id": "27"
    }),
    success: function (data) {
        console.log(data);
        $("#title1").html(data.obj.title);
        $("#create_times").html(data.obj.create_times);
        $("#create_user_name").html(data.obj.create_user_name);
        $("#title2").html(data.obj.title);
        $("#content1").html(data.obj.content);
    }
})
</script>
</html>